/**
 * Copyright (C) 2015-2016  Shuishun Zhou  All Rights Reserved.
 * File name:       hello_dll.h
 * Version:         0.0.3
 * Description:     study dll used dll header file
 * Function List:
 * History:
 * No.          Date        Author          Note
 * 01       2015-02-22  Water (sszhouplus@qq.com) Create v0.0.1
 * 02       2015-02-22  Water (sszhouplus@qq.com) v0.0.2 add BUILD_DLL for DLL only build use
 * 03       2015-02-23  Water (sszhouplus@qq.com) v0.0.3 add DLL_EXPORT for gcc
 **/
#ifndef __hello_h_
#define __hello_h_

#ifdef __cplusplus
extern "C" {
#endif

#ifdef BUILD_DLL
#  if defined (__GNUC__)
#	define DLL_EXPORT
#  elif defined(_MSC_VER)
#	define DLL_EXPORT _declspec(dllexport)
#  else
#	define DLL_EXPORT
#  endif
#endif

#ifdef BUILD_DLL
	DLL_EXPORT void hello_dll(void);
#else
	void (*hello_dll)(void);
#endif
	
#ifdef __cplusplus
}
#endif


#endif /* #ifndef __hello_h_ */
